package com.mq.mqserver.core;

/**
 * 声明 交换机的类型
 */
public enum ExchangeType {
    DIRECT(0),
    FANOUT(1),
    TOPIC(2);

    private final int type;

    public int getType(){
        return this.type;
    }
    private ExchangeType(int type){
        this.type = type;
    }


}
